package com.tjetc.hw.hw5;

import java.io.FileInputStream;
import java.io.IOException;

public class hw {
    public static void main(String[] args) throws IOException {
        FileInputStream fileInputStream = new FileInputStream("D:\\b.txt");
        int num;
        byte[] chars= new byte[1024];
        while ((num = fileInputStream.read(chars)) != -1) {
            System.out.println(new String(chars,0,num));
        }
        fileInputStream.close();
    }
}
